package main

import (
	"fmt"
	"github.com/wendy512/iec104/app"
	"github.com/wendy512/iec104/server"
)

func startServer() *server.Server {
	iec104Server := app.NewMyIec104Server()
	s := server.New(server.NewSettings(), iec104Server)
	s.Start()
	return s
}

func main() {
	calc := app.Sha256Calc("123456")
	fmt.Println(calc)
	startServer()
	select {}
}
